Scroll to navigation

sediff(1) SETools: SELinux Policy Analysis Tools sediff(1)

NAME

sediff - SELinux policy difference tool

SYNOPSIS

sediff [OPTIONS] [EXPRESSION] POLICY1 POLICY2

DESCRIPTION

Determine the differences between two SELinux policies.

POLICY

A single file containing a binary policy. This file is usually named by version on Linux systems, for example, policy.30. This file is usually named sepolicy on Android systems. If not provided, sediff will print an error message and exit.

EXPRESSIONS

The user may specify an expression listing the policy elements to differentiate. If not provided, all supported policy elements are examined.

Component Differences

Find differences in common permission sets.
Find differences in object classes.
Find differences in attributes associated with types.
Find differences in types assigned to attributes.
Find differences in types authorized for roles.
Find differences in roles authorized for users.
Find differences in the default values of booleans.
Find differences in sensitivity definitions.
Find differences in category definitions.
Find differences in MLS level definitions.

Type Enforcement Rule Differences

Find differences in allow and allowxperm rules.
Find differences in allow rules.
Find differences in auditallow rules.
Find differences in dontaudit rules.
Find differences in allowxperm rules.
Find differences in auditallowxperm rules.
Find differences in dontauditxperm rules.
Find differences in type_transition rules.
Find differences in type_member rules.
Find differences in type_change rules.

RBAC Rule Differences

Find differences in role allow rules.
Find differences in role_transition rules.

MLS Rule Differences

Find differences in range_transition rules.

Constraint Differences

Find differences in constrain rules.
Find differences in mlsconstrain rules.
Find differences in validatetrans rules.
Find differences in mlsvalidatetrans rules.

Labeling Statement Differences

Find differences in initial SID statements.
Find differences in fs_use_* statements.
Find differences in genfscon statements.
Find differences in netifcon statements.
Find differences in nodecon statements.
Find differences in portcon statements.

Other Differences

Find differences in default_* statements.
Find differences in policy properties. Only applicable for binary policies (policy version, MLS enabled/disabled, unknown permissions setting).
Find differences in policy capabilities.
Find differences in typebound statements.

OPTIONS

Print help information and exit.
Print difference statistics only.
Print version information and exit.
Print additional informational messages.
Enable debugging output.

DIFFERENCES

sediff categorizes differences in policy elements into one of three forms.

The element exists only in the modified policy.
The element exists only in the original policy.
The element exists in both policies but its semantic meaning has changed. For example, a class is modified if one or more permissions are added or removed.

AUTHOR

Chris PeBenito <pebenito@ieee.org>

BUGS

Please report bugs via the SETools bug tracker, https://github.com/SELinuxProject/setools/issues

SEE ALSO

apol(1), sedta(1), seinfo(1), seinfoflow(1), sesearch(1)

2016-04-19 SELinux Project